//
//  ZYCTeacherDineStatisticsBottomView.m
//  ZDSC
//
//  Created by ZDTX on 2021/8/30.
//

#import "ZYCTeacherDineStatisticsBottomView.h"
@interface ZYCTeacherDineStatisticsBottomView ()

@property (nonatomic, strong) UILabel *titleLabel;
@end
@implementation ZYCTeacherDineStatisticsBottomView


- (void)setTotal:(NSInteger)total{
    _total = total;
    _titleLabel.text = [NSString stringWithFormat:@"就餐统计总数: %zd",total];
}
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        [self addSubview:self.titleLabel];
        [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.center.equalTo(self);
        }];
    }
    return self;
}


- (UILabel *)titleLabel {
    if (!_titleLabel) {
        _titleLabel = [UILabel LabelWithFont:kCustomFont(@"PingFangSC-Light", 14.0f) titleColor:HEX_RGB(@"#E93C06") textAlignment:ZZTextAlignmentCenter];
    }
    return _titleLabel;
}
@end
